FROM openjdk:8-jdk-stretch
LABEL maintainer="caiweili <hellomrpc@126.com>"

ARG HBASE_VERSION=2.0.1
ADD hbase.tar.gz /
RUN mv /hbase-${HBASE_VERSION} /hbase

ENV PATH /hbase/bin/:$PATH

ADD entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]

CMD ["/bin/bash"]